//    Copyright (C) Kherty.  All rights reserved.
namespace OpenLS.Core.Formatting
{
    class InvisibleToken : ClauseFormatToken
    {
        public InvisibleToken(char c)
        {
            Value = c;
        }
        internal readonly char Value;
        internal override void Apply(FormatClause result)
        {
            result.AddInvisibleFormatItem(Value.ToString());
        }


        public override int Length
        {
            get { return 2; }
        }
        internal override string Code
        {
            get { return "_" + Value; }
        }
    }
}